<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page isELIgnored="false" %>
<%@taglib prefix="c" uri ="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>搜索结果</title>
    <link rel="stylesheet" type="text/css" href="css/sousu.css">
</head>
<body>
    <h1>搜索结果</h1>
    <a href="listGoods">返回商品列表</a>
    <form action="mohu" method="get">
        <input type="text" name="sousuo" value="" >
        <input type="submit" name="搜索2" value="搜索">
    </form>
    <table>
        <thead>
        <tr>
            <th>药品ID</th>
            <th>药品名称</th>
            <th>药品价格</th>
            <th>药品图片</th>
            <th>药品详情</th>
            <th>药品数量</th>
        </tr>
        </thead>
        <tbody id="list">
        <c:forEach  items="${goodsList}" var="goods">
            <tr>
                <td>${goods.id}</td>
                <td>${goods.name}</td>
                <td>${goods.price}</td>
                <td><a href="GoodsDetailServlet?id=${goods.id}">
                    <img src="<%= request.getContextPath() %>/${goods.imagePath}" width="100" height="100"></a></td>
                <td>${goods.mark}</td>
                <td>${goods.quantity}</td>
                <td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</body>
</html>
